﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model.EntityModel.Auth;
using Model.EntityModel.SysModel;

namespace Repository.IRepository.ISysRepository
{
    /// <summary>
    /// 用户-组关联表仓储接口
    /// </summary>
    public interface IUserGroupRepository : IBaseRepository<UserGroup>
    {
        List<UserGroup> GetUserGroups(string userId);
        bool AddGroupsToUser(string userId, List<string> groupIds);
        bool RemoveGroupsFromUser(string userId, List<string> groupIds);
        bool AddUsersToGroupBulk(List<string> userIds, string groupId);
        bool RemoveUsersFromGroupBulk(List<string> userIds, string groupId);
        bool UpdateUserGroupStatus(string relationId, string isActive);
        List<Group> GetActiveGroupsForUser(string userId);
        bool UserGroupExists(string userId, string groupId);
    }
}
